// pages目录下新建count和person文件夹，person文件夹下新建male、female文件夹，文件名均为index.tsx。路由配置如下：
export default [
  { exact: true, path: '/', component: 'index', title: '主页' },
  { exact: true, path: '/count', component: 'count', title: '计数器' },
  {
    path: '/person', component: 'person', routes: [
      { path: 'male', component: 'person/male', title: '男人' },
      { path: 'female', component: 'person/female', title: '女人' }
    ], title: '一堆人'
  },
];